package me.jiatao.hilt.scopes

import android.util.Log
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent
import javax.inject.Singleton

class AppClassA{
   fun  hello(){
       Log.e("AppClassA", "------ AppClassA hello  ------")
   }
}



@Module
@InstallIn(SingletonComponent::class)
class AppScopes {

    @Singleton
    @Provides
    fun provideAppClassA():AppClassA{
        return AppClassA()
    }
}